#include <49func.h>
#include <mysql/mysql.h>
int main(){
    MYSQL * mysql = mysql_init(NULL);
    MYSQL * ret = mysql_real_connect(mysql,"localhost","root","123","49test",0,NULL,0);
    if(ret == NULL){
        fprintf(stderr,"error:%s\n", mysql_error(mysql));
        return -1;
    }
    char sql[] = "update pet set species='puppey' where name = 'Bowser';";
    int qret = mysql_query(mysql,sql);
    if(qret != 0){
        fprintf(stderr,"error:%s\n", mysql_error(mysql));
        return -1;
    }
    mysql_close(mysql);
}
